package kickass2011;

public class Singleton {
	private static Singleton obj = new Singleton();
	private static int counter1;
	private static int counter2 = 0;
	private int counter3 = 2;
	public Singleton() {
		Singleton.counter1++;
		Singleton.counter2++;
		this.counter3++;
	}
	public static Singleton getInstance(){
		return obj;
	}
	public static void main(String[] args) {
		Singleton obj = Singleton.getInstance();
		System.out.println("counter1 = " + Singleton.counter1);
		System.out.println("connter2 = " + obj.counter2);
		System.out.println("connter3 = " + obj.counter3);
	}
}
